package chapter04.Example08;
class Animal{
    public final void shout(){

    }
}
//定义Dog类继承动物类
class Dog extends Animal{
    //重写动物类的shout方法
    public void shout(){
    }
}
public class Example08 {
    public static void main(String[] args) {
        Dog dog= new Dog();//创建Dog类的实例对象
    }
}
